package com.example.aircraftticketingsystemserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aircraftticketingsystemserver.entity.Notification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NotificationMapper extends BaseMapper<Notification> {
    void addNotice(Notification notification);

    void deleteNotice(List<Integer> noticeIds);

    List<Notification> selectNoticeByUserId(@Param("userId")Integer userId);
}
